package org.eclipsercp.hyperbola.model;

import java.util.Random;

public class ContactEntry extends Contact {
	private String nickname;
	private String server;
	private Presence presence;
	private ContactGroup group;

	public ContactEntry(ContactGroup belong, String name, String nickname,
			String server) {
		super(belong, name);
		this.group = belong;
		this.nickname = nickname;
		this.server = server;
		Random random = new Random(System.nanoTime());
		this.presence = Presence.values()[random.nextInt(3)];
	}

	public ContactEntry() {
		this(null, "", "", "");
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getServer() {
		return server;
	}

	public void setServer(String server) {
		this.server = server;
	}

	public Presence getPresence() {
		return presence;
	}

	public void setPresence(Presence presence) {
		this.presence = presence;
	}

	public ContactGroup getGroup() {
		return group;
	}

	public void setGroup(ContactGroup group) {
		this.group = group;
	}

}
